package com.minhua.jijiehao2.mainframe.circle.circleFragment.impl

import com.minhua.jijiehao2.base.BaseMvpPresenter
import com.minhua.jijiehao2.bean.BaseBean
import com.minhua.jijiehao2.bean.CircleBean
import com.minhua.jijiehao2.http.CallBack
import com.minhua.jijiehao2.http.ParamsMap
import com.minhua.jijiehao2.mainframe.circle.circleFragment.imp.ICirclePresenter
import com.minhua.jijiehao2.mainframe.circle.circleFragment.imp.ICircleView

class CirclePresenter : BaseMvpPresenter<ICircleView>(), ICirclePresenter {

    private val mCircleModel = CircleModel()


    override fun getAllInfo() {
        val map = ParamsMap()
        mCircleModel.getAllInfo(map, object : CallBack<CircleBean>() {
            override fun onSuccess(t: BaseBean<CircleBean>) {
                v?.onDataSuccess(t.data!!)
            }
        })
    }
}